import http from "@/util/http";

//物料质量检验统计数据
export const totalCountGraph = (params: any) =>
  http.request({
    url: `/xg/qualityCheck/totalCountGraph`,
    method: "get",
    data: params,
  });

//物料问题原因数据
export const questionClassificationGraph = (params: any) =>
  http.request({
    url: `/xg/qualityCheck/questionClassificationGraph`,
    method: "get",
    data: params,
  });

//物料类型分布
export const materialTypeGraph = (params: any) =>
  http.request({
    url: `/xg/qualityCheck/materialTypeGraph`,
    method: "get",
    data: params,
  });

//物料问题趋势
export const questionTrend = (params: any) =>
  http.request({
    url: `/xg/qualityCheck/questionTrend`,
    method: "get",
    data: params,
  });

//昨日物料校验结果
export const verificationResult = (params: any) =>
  http.request({
    url: `/xg/qualityCheck/verificationResult`,
    method: "get",
    data: params,
  });

export const companyAbnormalGraph = (params: any) =>
  http.request({
    url: `/xg/qualityCheck`,
    method: "get",
    data: params,
  });
